#include <iostream>

using std::cout;
using std::endl;


class Outer {
private:
    int outerVar;
public:
    class Inner {
    public:
        void func() {
            // 此处访问outerVar
            Outer outer;//必须要通过外部类的对象、指针或者引用来访问
            outer.outerVar = 10; 
        }
    };
};
int main()
{

    return 0;
}

